﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class DMLOAITIENTE: BusinessObject
    {
        public int MaLoaiTienTe { get; set; }
        public string TenLoaiTienTe { get; set; }
        public bool? IsUse { get; set; }
        public int? CreateBy { get; set; }
        public int? ModifiedBy { get; set; }
        public DateTime? ModifiedOn { get; set; }


        public DMLOAITIENTE()
        {
            AddRule(new ValidateRequired("TenLoaiTienTe"));
            AddRule(new ValidateLength("TenLoaiTienTe", 1, 3));
        }

        public DMLOAITIENTE(int maLoaiTienTe, string tenLoaiTienTe, bool? isUse, int? createBy, int? modifiedBy, DateTime? modifiedOn)
            :this()
        {
            MaLoaiTienTe = maLoaiTienTe;
            TenLoaiTienTe = tenLoaiTienTe;
            IsUse = isUse;
            CreateBy = createBy;
            ModifiedBy = modifiedBy;
            ModifiedOn = modifiedOn;
        }
    }
}
